gtk4.git
5 years agogdk: Drop some unused private api
Matthias Clasen [Wed, 7 Oct 2020 23:36:07 +0000 (19:36 -0400)]
gdk: Drop some unused private api

No users of gdk_display_peek_event, gdk_display_has_pending
_gdk_display_event_data_copy or _gdk_display_event_data_free,
so drop all of these, and related vfuncs.

5 years agoMerge branch 'master' into 'master'
Matthias Clasen [Wed, 7 Oct 2020 20:51:40 +0000 (20:51 +0000)]
Merge branch 'master' into 'master'

Allow LPR backend to print PDF and PS file formats

See merge request GNOME/gtk!418

5 years agoMerge branch 'wip/otte/for-master' into 'master'
Benjamin Otte [Wed, 7 Oct 2020 20:33:25 +0000 (20:33 +0000)]
Merge branch 'wip/otte/for-master' into 'master'

textbuffer: Don't serialize the \0 byte

See merge request GNOME/gtk!2672

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Wed, 7 Oct 2020 20:30:52 +0000 (20:30 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3237

See merge request GNOME/gtk!2673

5 years agotextbuffer: Don't serialize the \0 byte
Benjamin Otte [Wed, 7 Oct 2020 20:14:18 +0000 (22:14 +0200)]
textbuffer: Don't serialize the \0 byte

... when converting to text/plain.

5 years agocolorchooser: Bring color names back
Matthias Clasen [Wed, 7 Oct 2020 19:56:11 +0000 (15:56 -0400)]
colorchooser: Bring color names back

These are useful for accessibility.

Fixes: #3237
5 years agogtkplacessidebar: Disconnect and unref cloud_manager in dispose
Jan Alexander Steffens (heftig) [Wed, 7 Oct 2020 02:34:11 +0000 (22:34 -0400)]
gtkplacessidebar: Disconnect and unref cloud_manager in dispose

The manager's providers-changed signal can fire after the sidebar has
been freed. Make sure we disconnect the sidebar from the manager.

https://bugs.archlinux.org/task/57984
https://bugs.archlinux.org/task/68123

5 years agogtk-demo: Fix an off-by-one error
Matthias Clasen [Tue, 6 Oct 2020 22:09:52 +0000 (18:09 -0400)]
gtk-demo: Fix an off-by-one error

This was found by the asan build in our ci.

5 years agoMerge branch 'migration-guide-fix' into 'master'
Timm Bäder [Wed, 7 Oct 2020 08:00:43 +0000 (08:00 +0000)]
Merge branch 'migration-guide-fix' into 'master'

migration guide: Remove stray html tags

See merge request GNOME/gtk!2670

5 years agomigration guide: Remove stray html tags
Nicola Fontana [Wed, 7 Oct 2020 06:38:26 +0000 (08:38 +0200)]
migration guide: Remove stray html tags

5 years agoMerge branch 'svg-demo' into 'master'
Matthias Clasen [Tue, 6 Oct 2020 20:55:28 +0000 (20:55 +0000)]
Merge branch 'svg-demo' into 'master'

Svg demo

See merge request GNOME/gtk!2668

5 years agogtk-demo: Add an svg paintable demo
Matthias Clasen [Tue, 6 Oct 2020 19:12:09 +0000 (15:12 -0400)]
gtk-demo: Add an svg paintable demo

It is a little annoying that this demo will not show up
if we don't find librsvg, but I think showing how easy
this paintable is outweights the annoyance.

5 years agogtk-demo: Recognize .svg as images
Matthias Clasen [Tue, 6 Oct 2020 19:11:08 +0000 (15:11 -0400)]
gtk-demo: Recognize .svg as images

We can't guarantee that we can load it, but worst
case you'll get a missing image.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 6 Oct 2020 18:25:48 +0000 (18:25 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3235

See merge request GNOME/gtk!2667

5 years agoMerge branch 'aboutwindow' into 'master'
Matthias Clasen [Tue, 6 Oct 2020 18:25:27 +0000 (18:25 +0000)]
Merge branch 'aboutwindow' into 'master'

gtkaboutdialog: Directly specialize GtkWindow

See merge request GNOME/gtk!2666

5 years agoaboutdialog: Fix updating license tab
Matthias Clasen [Tue, 6 Oct 2020 16:53:46 +0000 (12:53 -0400)]
aboutdialog: Fix updating license tab

We need to update the license button visibility
whenever the license type changes.

5 years agogtkaboutdialog: Directly specialize GtkWindow
Adrien Plazas [Mon, 5 Oct 2020 15:20:27 +0000 (17:20 +0200)]
gtkaboutdialog: Directly specialize GtkWindow

As it doesn't act as a dialog, there is no point specializing GtkDialog,
so his makes it specialize GtkWindow directly.

5 years agowindow: Fix setting min size
Matthias Clasen [Tue, 6 Oct 2020 15:05:40 +0000 (11:05 -0400)]
window: Fix setting min size

We were inadvertedly setting the windows min size
to the default size, making it so that you can never
shrink a window below its default size.

Fixes: #3235
5 years agogdk: Tweak our GL debug message callback
Matthias Clasen [Tue, 6 Oct 2020 13:25:47 +0000 (09:25 -0400)]
gdk: Tweak our GL debug message callback

Go back to installing our debug message callback
unconditionally if G_ENABLE_CONSISTENCY_CHECKS is
defined, and allow opting into it using GDK_DEBUG=gl-debug
otherwise.

5 years agogdk: Docs tweaks
Matthias Clasen [Tue, 6 Oct 2020 11:09:13 +0000 (07:09 -0400)]
gdk: Docs tweaks

We don't have library initialization api anymore,
update the section title to reflect that.

5 years agotreelistrowsorter: Add a bandaid
Matthias Clasen [Tue, 6 Oct 2020 01:27:23 +0000 (21:27 -0400)]
treelistrowsorter: Add a bandaid

The GtkTreeListRowSortKeys implementation doesn't
know how it wants to cache its keys, and just crashes.

Since that is not cool, add a bandaid fix that forces
it to recreate its keys instead. Extra work, but hey,
no crash.

Related: #3228

5 years agoMerge branch 'FixWin32PopupFocus' into 'master'
Emmanuele Bassi [Tue, 6 Oct 2020 10:30:07 +0000 (10:30 +0000)]
Merge branch 'FixWin32PopupFocus' into 'master'

Gtk4/Win32: Fix popup focus stealing when CSD is disabled

See merge request GNOME/gtk!2665

5 years agoFix Win32 popup focus when using SSD
firox263 [Tue, 6 Oct 2020 09:37:35 +0000 (22:37 +1300)]
Fix Win32 popup focus when using SSD

Prevents GDK Popups from stealing focus from the parent window when
using Server Side Decorations on win32.

It uses `ShowWindow` and the `SW_SHOWNOACTIVATE` flag.

5 years agoMerge branch 'wip/carlosg/for-master' into 'master'
Matthias Clasen [Tue, 6 Oct 2020 02:14:54 +0000 (02:14 +0000)]
Merge branch 'wip/carlosg/for-master' into 'master'

gtkpopover: Revert focus to parent on hide()

Closes #3214

See merge request GNOME/gtk!2653

5 years agoCosmetic
Matthias Clasen [Tue, 6 Oct 2020 01:53:05 +0000 (21:53 -0400)]
Cosmetic

Don't call gtk_root_get_focus when we already have
the GtkWindowPrivate struct at hand. And use
gtk_window_set_focus to update the focus, like the
old code did.

5 years agogtkwindow: Ensure to revert focus to a parent on hide()
Carlos Garnacho [Thu, 1 Oct 2020 14:54:10 +0000 (16:54 +0200)]
gtkwindow: Ensure to revert focus to a parent on hide()

When a widget is hidden, check harder for the keyboard focus being
contained in that widget, in order to reset it. Portions of the
focus child hierarchy may be outdated at the time, so it is more
reliable to check GtkRoot::focus (i.e. the property we intend to
update here).

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3214
5 years agoMerge branch 'simple-resizing-fixes' into 'master'
Matthias Clasen [Tue, 6 Oct 2020 01:25:25 +0000 (01:25 +0000)]
Merge branch 'simple-resizing-fixes' into 'master'

Simple resizing fixes

Closes #3076

See merge request GNOME/gtk!2661

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 6 Oct 2020 00:57:30 +0000 (00:57 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3196

See merge request GNOME/gtk!2662

5 years agogradient shaders: Reduce out values as well
Timm Bäder [Sat, 26 Sep 2020 06:43:36 +0000 (08:43 +0200)]
gradient shaders: Reduce out values as well

We only do 6 color stops here now. Also works around a driver bug.

Fixes #3196

5 years agowindow: Fix window size snapping back
Matthias Clasen [Tue, 6 Oct 2020 00:22:02 +0000 (20:22 -0400)]
window: Fix window size snapping back

We were not updating the remembered size at all when
the window is interactively resized, causing it to
snap back to its default size the next time we call
gdk_toplevel_present().

This is a bandaid fix to prevent very broken resizing
behavior, until we have properly redone toplevel sizing.

Fixes: #3076
5 years agowayland: Don't forget to reapply margins
Matthias Clasen [Tue, 6 Oct 2020 00:17:50 +0000 (20:17 -0400)]
wayland: Don't forget to reapply margins

When using the saved size because the compositor
told us to, we were forgetting to readd the margins.

The visible symptom of this was the window getting
smaller every time we went to tiled state and back.

5 years agowayland: Don't save size when tiled
Matthias Clasen [Tue, 6 Oct 2020 00:15:33 +0000 (20:15 -0400)]
wayland: Don't save size when tiled

Don't remember the surface size when we are in tiled
state either. This matches the 'fixed_size' condition
in gdk_wayland_surface_configure_toplevel.

This change fixes an issue where moving a window first
to tiled, then to maximized state and back would lead
to the unmaximized window having the tiled dimensions.

5 years agowayland: Don't emit premature configure events
Matthias Clasen [Fri, 7 Aug 2020 20:54:09 +0000 (16:54 -0400)]
wayland: Don't emit premature configure events

We should not emit configure events before we are realized - size
changes at this point are not relevant.

This gets rid of a mysterious emission of GdkSurface::size-changed
with a size of 52x52, that is happening when GtkWindow sets the
shadow_width before the window is mapped.

5 years agogtk-demo: Mention dataset size for Characters
Matthias Clasen [Mon, 5 Oct 2020 18:43:38 +0000 (14:43 -0400)]
gtk-demo: Mention dataset size for Characters

5 years agogl: Install the debug message callback for gl-debug
Matthias Clasen [Mon, 5 Oct 2020 18:08:55 +0000 (14:08 -0400)]
gl: Install the debug message callback for gl-debug

Always install the debug message callback when we can
and GDK_DEBUG=gl-debug is specified. Previously, we
were only installing the callback when the build was
a non-optimized debug build.

5 years agoMerge branch 'fix-texture-cache' into 'master'
Matthias Clasen [Mon, 5 Oct 2020 14:58:20 +0000 (14:58 +0000)]
Merge branch 'fix-texture-cache' into 'master'

gl renderer: Fix up texture cache key

See merge request GNOME/gtk!2659

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 5 Oct 2020 14:23:08 +0000 (14:23 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2660

5 years agogtk-demo: Fix up the Characters demo
Matthias Clasen [Mon, 5 Oct 2020 13:56:04 +0000 (09:56 -0400)]
gtk-demo: Fix up the Characters demo

Move the Unicode names to a separate source file,
and only build the demo if we have harfbuzz (since
we use script names, and those are only available
with harfbuzz).

Also, fix a forgotten type name.

5 years agogl renderer: Fix up texture cache key
Alexander Larsson [Mon, 5 Oct 2020 13:19:27 +0000 (15:19 +0200)]
gl renderer: Fix up texture cache key

The commit e14d2be1 forgot to actually set the parent_rect in the texture
key in the case it is necessary.

5 years agoNEWS: Updates
Matthias Clasen [Mon, 5 Oct 2020 12:08:43 +0000 (08:08 -0400)]
NEWS: Updates

Trying a new scheme - when updating NEWS outside of doing
a release, keep the version out, to make the it clear that
this is just about the tip of the branch, not a complete
release.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 5 Oct 2020 11:29:10 +0000 (11:29 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2658

5 years agogtk-demo: Add a column view demo
Matthias Clasen [Mon, 5 Oct 2020 01:21:44 +0000 (21:21 -0400)]
gtk-demo: Add a column view demo

Make a column view that is showing some Unicode data.

5 years agoPrevent a crash with script names
Matthias Clasen [Mon, 5 Oct 2020 01:20:48 +0000 (21:20 -0400)]
Prevent a crash with script names

We can't pass NULL to gettext().

5 years agoUpdate the copy in gtk-demo too
Matthias Clasen [Sun, 4 Oct 2020 23:48:46 +0000 (19:48 -0400)]
Update the copy in gtk-demo too

5 years agoUpdate script names to Unicode 13
Matthias Clasen [Sun, 4 Oct 2020 20:15:09 +0000 (16:15 -0400)]
Update script names to Unicode 13

It would be better if this was provided elsewhere...

5 years agoMerge branch 'emoji-data-cldr' into 'master'
Matthias Clasen [Sun, 4 Oct 2020 13:56:40 +0000 (13:56 +0000)]
Merge branch 'emoji-data-cldr' into 'master'

Update Emoji data

Closes #1511 and #950

See merge request GNOME/gtk!2656

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sun, 4 Oct 2020 13:56:30 +0000 (13:56 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2657

5 years agoscale: Make draw-value default to FALSE
Matthias Clasen [Sun, 4 Oct 2020 00:08:29 +0000 (20:08 -0400)]
scale: Make draw-value default to FALSE

This is rarely what you want, so lets turn it off
by default.

Update the one place in our demos where we want to
draw a value, add support for this to gtk-builder-tool,
add a test and mention this change in the migration
guide.

5 years agoRedo the handling of Emoji data
Matthias Clasen [Sun, 4 Oct 2020 02:26:56 +0000 (22:26 -0400)]
Redo the handling of Emoji data

Use the data files from https://github.com/milesj/emojibase.git
as source for our Emoji data. Slightly change our data format by
adding a group to each item, in both the Emoji data and in the
setting for recent-emoji.

Install translated versions of the data as separate resource
bundles in $prefix/gtk-4.0/emoji, and load them when appropriate.

Currently, we have data for de, en, es, fr, zh, with data taken
from Unicode 13 and CLDR 13.

Fixes: #950 #1511
5 years agoEmoji: Drop the shortname field from emoji.data
Matthias Clasen [Wed, 15 Apr 2020 05:19:09 +0000 (01:19 -0400)]
Emoji: Drop the shortname field from emoji.data

Match the name for Emoji completion, and display
it too. 'man worker' looks a lot more natural in
the UI than ':man_worker:'.

5 years agoDo case-folding and tokenization when creating emoji.data
Matthias Clasen [Wed, 15 Apr 2020 04:28:53 +0000 (00:28 -0400)]
Do case-folding and tokenization when creating emoji.data

We can avoid doing the extra work of case-folding and
tokenization whenever we filter in the Emoji chooser.

5 years agoemoji: Add keywords to the data
Matthias Clasen [Wed, 15 Apr 2020 02:29:25 +0000 (22:29 -0400)]
emoji: Add keywords to the data

And use them for matching in the Emoji chooser.

5 years agoemoji: Some work on the conversion tool
Matthias Clasen [Tue, 14 Apr 2020 23:13:17 +0000 (19:13 -0400)]
emoji: Some work on the conversion tool

Document the variant format, and write out json
format if asked to.

5 years agoFix Emoji completion
Matthias Clasen [Sat, 3 Oct 2020 23:42:19 +0000 (19:42 -0400)]
Fix Emoji completion

This is some late fallout from the container removal.

5 years agowidget-factory: Enable emoji completion somewhere
Matthias Clasen [Sat, 3 Oct 2020 23:41:26 +0000 (19:41 -0400)]
widget-factory: Enable emoji completion somewhere

Without a quick way to test this, it is bound to
fall apart. As it has.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 3 Oct 2020 19:27:15 +0000 (19:27 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #506

See merge request GNOME/gtk!2655

5 years agotextbuffer: Improve some get_iter apis
Matthias Clasen [Sat, 3 Oct 2020 17:30:42 +0000 (13:30 -0400)]
textbuffer: Improve some get_iter apis

Make these functions return FALSE if they did not
return the exact position that was requested.

Adapt tests.

Based on a patch by Sebastien Wilmet

Fixes: #506
5 years agotestsuite: Add a test that checks for property accessors
Matthias Clasen [Sat, 3 Oct 2020 16:22:05 +0000 (12:22 -0400)]
testsuite: Add a test that checks for property accessors

Make sure that every object property in GTK has accessors for getting
its value (if the property is readable) or setting it (if it is
writable).

Since we are still missing accessors, the test is allowed to
fail for now. Sadly, mesons xfail support is busted, so we just
disable the test entirely :(

Based on initial work by Benjamin Otte.

Related: #2440

5 years agospinbutton: Add some missing accessors
Matthias Clasen [Sat, 3 Oct 2020 17:02:38 +0000 (13:02 -0400)]
spinbutton: Add some missing accessors

Add a setter and getter for the climb-rate property.

5 years agoCosmetics
Matthias Clasen [Sat, 3 Oct 2020 16:52:19 +0000 (12:52 -0400)]
Cosmetics

5 years agotext: Add some missing setters and getters
Matthias Clasen [Sat, 3 Oct 2020 16:20:58 +0000 (12:20 -0400)]
text: Add some missing setters and getters

Add getters and setters for the enable-emoji-completion,
propagate-text-width and truncate-multiline properties.

5 years agodirectorylist: Drop the item-type property
Matthias Clasen [Sat, 3 Oct 2020 15:36:14 +0000 (11:36 -0400)]
directorylist: Drop the item-type property

No need for this to be a property.
This showed up in a test for missing accessors.

5 years agoicontheme: Add a missing getter
Matthias Clasen [Sat, 3 Oct 2020 15:25:35 +0000 (11:25 -0400)]
icontheme: Add a missing getter

We want to have a get_display() method on every object
that is tied to the display, so add one here.

5 years agocolorbutton: Properly override interface properties
Matthias Clasen [Sat, 3 Oct 2020 15:07:14 +0000 (11:07 -0400)]
colorbutton: Properly override interface properties

This showed up in a test for missing property accessors.

5 years agonode-editor: Don't insert hyphens
Matthias Clasen [Sat, 3 Oct 2020 13:46:38 +0000 (09:46 -0400)]
node-editor: Don't insert hyphens

This can be a bit confusing in multi-line strings.

5 years agogsk: Avoid long lines in serialized nodes
Matthias Clasen [Sat, 3 Oct 2020 13:45:28 +0000 (09:45 -0400)]
gsk: Avoid long lines in serialized nodes

When encoding big blobs of data in base64, insert newlines.
Base64 allows it, CSS allows it, so not need to make GtkTextView
struggle with multi-megabyte lines.

Update nodeparser tests to reflect this change.

5 years agogtk-demo: Rename the transition shader files
Matthias Clasen [Sat, 3 Oct 2020 04:01:25 +0000 (00:01 -0400)]
gtk-demo: Rename the transition shader files

Easier to find them when their name matches the title
that we show in the UI.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 3 Oct 2020 03:55:32 +0000 (03:55 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #2261 and #1002

See merge request GNOME/gtk!2654

5 years agogtk-demo: Fix a typo
Matthias Clasen [Sat, 3 Oct 2020 03:54:15 +0000 (23:54 -0400)]
gtk-demo: Fix a typo

5 years agoAllow inserting newlines in css strings
Matthias Clasen [Sat, 3 Oct 2020 02:31:29 +0000 (22:31 -0400)]
Allow inserting newlines in css strings

Rename _gtk_css_print_string to strip the _ and add
an insert_newlines argument to it. Update all callers,
and make the render node serializer insert newlines.

5 years agocss: Move _gtk_css_print_string around
Matthias Clasen [Sat, 3 Oct 2020 02:28:17 +0000 (22:28 -0400)]
css: Move _gtk_css_print_string around

Move this to a separate header, since it is not
parser functionality, and kill the duplicate
gtkcssparserprivate.h header.

5 years agoMerge branch 'stackswitcher-button-styling' into 'master'
Jakub Steiner [Fri, 2 Oct 2020 15:09:07 +0000 (15:09 +0000)]
Merge branch 'stackswitcher-button-styling' into 'master'

Adwaita: Simplify stackswitcher button styling

See merge request GNOME/gtk!2498

5 years agoemojichooser: Allow inserting multiple Emoji
Matthias Clasen [Fri, 2 Oct 2020 03:35:06 +0000 (23:35 -0400)]
emojichooser: Allow inserting multiple Emoji

Don't close the Emoji chooser when the Control
key is held while clicking. So you can insert
multiple Emoji without having to reopen the
chooser every time.

Fixes: #1002
5 years agoAdd a test for gsk_gl_shader_compile
Matthias Clasen [Fri, 2 Oct 2020 01:25:39 +0000 (21:25 -0400)]
Add a test for gsk_gl_shader_compile

This is not super useful, but at least we can
test that we get an error message including the
shader text.

5 years agogdk: Remove an unused variable
Matthias Clasen [Thu, 1 Oct 2020 23:33:43 +0000 (19:33 -0400)]
gdk: Remove an unused variable

5 years agoAdd GTK_INPUT_HINT_PRIVATE
Matthias Clasen [Thu, 1 Oct 2020 21:14:58 +0000 (17:14 -0400)]
Add GTK_INPUT_HINT_PRIVATE

Add a flag that requests that input methods should not
update personalized data (such as typing history).

Fixes: #2261
5 years agodocs: Fix a copy-paste error
Matthias Clasen [Thu, 1 Oct 2020 21:07:53 +0000 (17:07 -0400)]
docs: Fix a copy-paste error

5 years agoUpdate the release script
Matthias Clasen [Thu, 1 Oct 2020 19:14:33 +0000 (15:14 -0400)]
Update the release script

If things go according to plan, we don't need to include
gtk-doc as a subproject in the next snapshot.

5 years agoUse gtk-doc from master
Matthias Clasen [Thu, 1 Oct 2020 19:11:37 +0000 (15:11 -0400)]
Use gtk-doc from master

I've merged the relevant parts from the gtk-doc-for-gtk4
branch.

5 years agoRequire gtk-doc 1.33
Matthias Clasen [Thu, 1 Oct 2020 19:08:50 +0000 (15:08 -0400)]
Require gtk-doc 1.33

We'll hopefully get a gtk-doc release out with that
version number soon.

5 years agoCosmetics
Matthias Clasen [Thu, 1 Oct 2020 17:48:08 +0000 (13:48 -0400)]
Cosmetics

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Thu, 1 Oct 2020 14:21:34 +0000 (14:21 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3220

See merge request GNOME/gtk!2652

5 years agoMerge branch 'master' into 'matthiasc/for-master'
Matthias Clasen [Thu, 1 Oct 2020 13:56:37 +0000 (13:56 +0000)]
Merge branch 'master' into 'matthiasc/for-master'

# Conflicts:
#   .gitlab-ci/test-msys2.sh

5 years agoMerge branch 'ci-win32-introspection-enabled' into 'master'
Matthias Clasen [Thu, 1 Oct 2020 13:50:02 +0000 (13:50 +0000)]
Merge branch 'ci-win32-introspection-enabled' into 'master'

CI: Enable introspection again for the Windows build

See merge request GNOME/gtk!2651

5 years agoCI: Enable introspection again for the Windows build
Christoph Reiter [Thu, 1 Oct 2020 13:16:18 +0000 (15:16 +0200)]
CI: Enable introspection again for the Windows build

The underlying bug was fixed in glib and backported in MSYS2:
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1665

5 years agoMerge branch 'wip/jimmac/infosearch-close' into 'master'
Matthias Clasen [Thu, 1 Oct 2020 12:01:23 +0000 (12:01 +0000)]
Merge branch 'wip/jimmac/infosearch-close' into 'master'

Adwaita: close button for infobar, searchbar

Closes #3215

See merge request GNOME/gtk!2650

5 years agoRevert "Fix the build with cups < 2.3"
Matthias Clasen [Thu, 1 Oct 2020 11:59:30 +0000 (07:59 -0400)]
Revert "Fix the build with cups < 2.3"

This reverts commit d761e3cf2c31b91269a3dbfd64a553decdeec51c.

I am seeing PPD_CUSTOM_UNKNOWN in the cups headers in our
ci images, and that is cups 2.2.12. So this commit was
mistaken.

5 years agoci: Give up on sysprof for now
Matthias Clasen [Thu, 1 Oct 2020 11:37:44 +0000 (07:37 -0400)]
ci: Give up on sysprof for now

Using sysprof and glib as subprojects of the same
project sadly does not work. Subprojects are not
as robust as they should be.

5 years agoAdwaita: close button for infobar, searchbar
Jakub Steiner [Thu, 1 Oct 2020 11:13:10 +0000 (13:13 +0200)]
Adwaita: close button for infobar, searchbar

fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3215

5 years agoci: Try to get everything building again
Matthias Clasen [Thu, 1 Oct 2020 03:37:09 +0000 (23:37 -0400)]
ci: Try to get everything building again

It turns out that the sysprof meson setup does not
work with meson 0.54 :( So version 25 of our ci images
bumps the meson version to 0.55.3.

5 years agobuild: Try to fix docs+subprojects
Matthias Clasen [Wed, 30 Sep 2020 20:21:39 +0000 (16:21 -0400)]
build: Try to fix docs+subprojects

Apparently, subprojects don't have pkgconfig variables :(

5 years agobuild: Remove an unneeded version check
Matthias Clasen [Wed, 30 Sep 2020 20:09:56 +0000 (16:09 -0400)]
build: Remove an unneeded version check

We are requiring a newer meson than we were checking
for here.

5 years agoci: Remove --fatal-meson-warnings
Matthias Clasen [Wed, 30 Sep 2020 19:53:15 +0000 (15:53 -0400)]
ci: Remove --fatal-meson-warnings

meson adds features that then trigger warnings when we run
a newer meson over some of our subprojects. This is all too
fragile.

5 years agogtk-demo: Add the shader paintable sources
Matthias Clasen [Wed, 30 Sep 2020 19:41:05 +0000 (15:41 -0400)]
gtk-demo: Add the shader paintable sources

This is currently not public GTK api, just part of
the demo. So we should show it here.

5 years agogsk: Fix compiler warnings
Matthias Clasen [Wed, 30 Sep 2020 19:39:30 +0000 (15:39 -0400)]
gsk: Fix compiler warnings

We forgot to teach the broadway renderer about new enum
values, and our ci didn't catch it because werror didn't
actually work there until now.

5 years agobuild: Require meson 0.54
Matthias Clasen [Wed, 30 Sep 2020 19:10:34 +0000 (15:10 -0400)]
build: Require meson 0.54

5 years agoci: Really enable werror
Matthias Clasen [Wed, 30 Sep 2020 18:45:47 +0000 (14:45 -0400)]
ci: Really enable werror

We wanted to enable werror for gtk without enabling it
for all our subprojects. Sadly, we failed. Try again

5 years agoci: Use the v24 images
Matthias Clasen [Wed, 30 Sep 2020 19:25:51 +0000 (15:25 -0400)]
ci: Use the v24 images

These images have meson 0.54.

5 years agoci: Use a newer meson in images
Matthias Clasen [Wed, 30 Sep 2020 19:12:32 +0000 (15:12 -0400)]
ci: Use a newer meson in images

We need meson 0.54.

5 years agomeson: Change introspection option to yielding feature
Xavier Claessens [Wed, 30 Sep 2020 13:41:28 +0000 (09:41 -0400)]
meson: Change introspection option to yielding feature

Yielding option means that if pango is built as a subproject, it will
take the value of that option from the parent project (e.g. gst-build).
For that to work it must be of the same type, which is "feature" instead
of "boolean" in all GStreamer modules.